<? if ($c = stack('name')) {

	$d = component_data($c); 
	$s = component_settings($c);

	?><div class="b-caption"><?=$s['caption']?></div><?
	
	if (sizeof($d)) { ?><dl><?
		foreach($d = component_data($c) as $id => $v) {
			?><dt><?=$v['title']?></dt>
				<dd><?=$v['body']?></dd>
			<?
		}
	?></dl><? }
	
	?><div class="clearer"></div><?
	
	if (sizeof($d = $s['paging']['data'])) {	?><ul class="b-paging"><?
		foreach ($d as $v) { ?><li class="<?=($v['first'] ? ' first' : '').($v['last'] ? ' last' : '')?>"><?
			if ($v['url']) {
				?><a href="<?=$v['url']?>" title="<?=$v['title']?>"><?=$v['title']?></a><?
			} else {
				if ($v['title']) {
					?><strong><?=$v['title']?></strong><?
				} else {
					?><span>...</span><?
				}
			}
			?></li><?
		}
		?></ul><?
	}
	
	
	unstack();
} ?>